﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="kaoshi._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
        <div style="width:1000px;margin:0px auto;text-align:center">
            <style>
                th{
                    width:200px;
                    text-align:center;
                    
                }
            </style>
            <asp:GridView ID="gv1" runat="server"
                OnRowCancelingEdit="gv1_RowCancelingEdit"
                OnRowDeleting="gv1_RowDeleting"
                OnRowEditing="gv1_RowEditing"
                OnRowUpdating="gv1_RowUpdating" AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="ID" />
                    <asp:BoundField DataField="Title" HeaderText="标题" />
                    <asp:BoundField DataField="Content" HeaderText="内容" />
                    <asp:BoundField DataField="Author" HeaderText="作者" />
                    <asp:BoundField DataField="Remarks" HeaderText="备注" />
                    <asp:CommandField ShowCancelButton="true"
                        ShowEditButton="true"
                        ShowDeleteButton="true"
                        HeaderText="改一改呀！" />
                </Columns>
            </asp:GridView>
            <asp:Button Text="增加" runat="server" ID="add" OnClick="add_Click"/>
        </div>
</asp:Content>
